<table style="margin:0px auto 20px auto;">
    <tr>
        <td colspan="3" style="text-align:center">
            <h1 style="margin:0px"><small>LOGIN</small></h1>
        </td>
    </tr>
    <tr>
        <td><img src="/themes/{{siteInfo.theme}}/assets/img/line_left.png" alt=""></td>
        <td style="padding:0 10px 0 10px;text-align:center"><h2 style="margin:0px">会员登陆</h2></td>
        <td><img src="/themes/{{siteInfo.theme}}/assets/img/line_right.png" alt=""></td>
    </tr>
</table>
<div class="container">
  <form id="login-form" class="form-horizontal" role="form" action="/api/signin" method="post">
    <div class="form-group">
      <div class="col-sm-12">
        <input type="text" class="form-control" id="account" name="account" value="{{user.email}}" placeholder="请输入邮箱或手机">
      </div>
    </div>
    <div class="form-group">
        <div class="col-sm-12">
            <input type="password" class="form-control" id="password" name="password" value="" placeholder="请输入密码">
        </div>
    </div>
    <div class="form-group">
      <div class="col-sm-12">
          <button type="submit" class="btn btn-primary btn-lg btn-block">登陆</button>
      </div>
    </div>
  </form>
  <div class="text-right">
    <a href="/hyfw/hyzc">免费注册</a>
  </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('#login-form').bootstrapValidator({
            message: '无效字段',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                account: {
                    validators: {
                        notEmpty: {
                            message: '账号不能为空'
                        }
                    }
                },
                password: {
                    validators: {
                        notEmpty: {
                            message: '密码不能为空'
                        }
                    }
                }
            }
        });
    });
</script>